package com.kaifamiao.time;

import java.time.ZoneId;
import java.util.Iterator;
import java.util.Set;

public class ZoneIdInstance {

    public static void main(String[] args) {

        ZoneId zid = ZoneId.systemDefault();
        System.out.println( zid );

        zid = ZoneId.of( "Asia/Chongqing" );
        System.out.println( zid );

        // 后续代码还没有讲到，只是先看一下结果
        Set<String> set = ZoneId.getAvailableZoneIds();
        for(Iterator<String> itor = set.iterator(); itor.hasNext(); ){
            String zoneId = itor.next();
            System.out.println( zoneId);
        }

    }

}
